const dotenv = require('dotenv')
const fs =  require('fs')
const path = require('path')
dotenv.config()

// console.log(process.env.APP_PORT)
const PRIVATE_KEY = fs.readFileSync(path.resolve(__dirname,'./key/rsa_private_key.pem'))
const PUBLIC_KEY = fs.readFileSync(path.resolve(__dirname,'./key/rsa_public_key.pem'))
module.exports = {
  APP_PORT,
  APP_HOST,
  MYSQL_HOST,
  MYSQL_PORT,
  MYSQL_DATABASE, 
  MYSQL_USER, 
  MYSQL_PASSWORD,
} = process.env 

module.exports.PRIVATE_KEY = PRIVATE_KEY
module.exports.PUBLIC_KEY = PUBLIC_KEY